package com.example.gdzd_demo.file.easyexcel;

import com.alibaba.excel.EasyExcel;
import com.example.gdzd_demo.model.User;

import java.util.List;

public class ExcelReaderExample {
    public static void main(String[] args) {
        String filePath = "F://gdzd_file/user.xls"; // �滻Ϊʵ�ʵ��ļ�·��
        UserDataListener listener = new UserDataListener();
        EasyExcel.read(filePath, User.class, listener).sheet().doRead();
        List<User> userList = listener.getUserList();
        // �����ȡ�����û��б�����
        userList.forEach(System.out::println);
    }
}
